﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="FoodOrdersSrhForm.aspx.cs" Inherits="App_Input_FoodOrdersSrhForm"  Title="会员订餐"%>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索条件')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="32" Visible="false">
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtDate">
            <cc1:ComAbsParamsAttribute Parameter="订餐日期" />
        </cc1:CheckDateAttribute>
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtSendDate">
            <cc1:ComAbsParamsAttribute Parameter="送餐时间开始" />
        </cc1:CheckDateAttribute>
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtSendDateTo" DataFormat="yyyy/mm/dd">
            <cc1:ComAbsParamsAttribute Parameter="送餐时间结束" />
        </cc1:CheckDateAttribute>
        <cc1:CheckDateRangeAttribute Code="E0331" ControlToValidator1="txtSendDate" ControlToValidator2="txtSendDateTo">
            <cc1:ComAbsParamsAttribute Parameter="送餐时间开始" />
            <cc1:ComAbsParamsAttribute Parameter="送餐时间结束" />
        </cc1:CheckDateRangeAttribute>
    </cc1:ComValidator>
    <table border="0" class="table_border_line">
        <tr>
            <td style="width: 21%; height: 35px">
            </td>
            <td style="width: 91px; height: 35px">
                会员编号：</td>
            <td style="height: 35px">
                 <asp:TextBox ID="txtMemberNo" runat="server" MaxLength="12" Width="85px"></asp:TextBox>
                            <asp:TextBox ID="txtMemberName" runat="server" Width="89px" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                                ForeColor="Black" contentEditable="false"></asp:TextBox>
                            <a href="#" onclick="javascript:popupMemberSearch('<%=txtMemberNo.ClientID%>', '<%=txtMemberName.ClientID %>' );">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
        </tr>
        <tr>
            <td style="width: 21%; height: 35px">
            </td>
            <td style="width: 91px; height: 35px">
                订餐日期：</td>
            <td style="height: 35px">
                <asp:TextBox ID="txtDate" runat="server" onfocus="new Calendar().show(this);" Width="105px" MaxLength="10"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width:21%; height: 35px;"  >

              

            </td>
            <td style="height: 35px; width: 91px;" >
                送餐时间：</td>
            <td style="height: 35px" >
                <asp:TextBox ID="txtSendDate" runat="server" onfocus="new Calendar().show(this);"
                    Width="105px" MaxLength="10"></asp:TextBox>
                <asp:DropDownList ID="dropHour" runat="server">
                </asp:DropDownList>
                点
                <asp:DropDownList ID="dropMin" runat="server">
                </asp:DropDownList>
                分～<asp:TextBox ID="txtSendDateTo" runat="server" onfocus="new Calendar().show(this);"
                    Width="105px" MaxLength="10"></asp:TextBox>
                <asp:DropDownList ID="dropHourTo" runat="server">
                </asp:DropDownList>
                点
                <asp:DropDownList ID="dropMinTo" runat="server">
                </asp:DropDownList>
                分</td>
        </tr>
       
        <tr>
            <td style="height: 43px" align="center" colspan="3" valign="bottom">
                <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click"
                    Text="检 索" Width="75px" />
                &nbsp;
                <asp:Button ID="btnNew" runat="server" Text="订 餐" CssClass="button" Width="75px" OnClick="btnNew_Click"/></td>
        </tr>
    </table>
    <table border="0" class="table_border_line">
        <tr>
            <td align="left" style="height: 15px">

                <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 会员订餐')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <table border="0" class="table_border_line">
        <tr>
            <td  >
<asp:GridView ID="GridView1" runat="server"  CssClass="GridView_table" DataKeyNames="DinnerId"
                                    AutoGenerateColumns="False" OnRowEditing="GridView1_OnRowEditing" OnRowDataBound="GridView1_RowDataBound"
                                            Width="100%"  BorderWidth="0px" AllowPaging="True">
                                    <Columns>
                                        <asp:BoundField HeaderText="编号" >
                                            <ItemStyle CssClass="GridView_item_center"  width="10%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="会员编号" DataField="MemberNo">
                                            <ItemStyle CssClass="GridView_item_center"  width="10%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="订餐会员" DataField="NameC">
                                            <ItemStyle CssClass="GridView_item_center"  width="10%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="送餐时间" DataField="DinnerTime">
                                            <ItemStyle CssClass="GridView_item_center"  width="15%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="送餐地点" DataField="DinnerDelivery">
                                            <ItemStyle CssClass="GridView_item_center"  width="20%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="价格" DataField="Price" DataFormatString="{0:N}" HtmlEncode="False">
                                            <ItemStyle CssClass="GridView_item_center"  width="25%"/>
                                            <HeaderStyle CssClass="GridView_head_grayblue" />
                                        </asp:BoundField>
                                    
                                          <asp:CommandField HeaderText="详细" ShowEditButton="True" ButtonType="Image"  EditImageUrl="~/images/info.gif"
                                          >
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                        <ItemStyle CssClass="GridView_item_center" />
                                    </asp:CommandField>
                                        
               
                                    </Columns>
                        <PagerStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        
</asp:GridView> 
            </td>
        </tr>
    </table>
</asp:Content> 
